<button id="open" onclick='window.w=window.open("about:blank", "_blank" ,"width=100,height=100,left=100,right=100")'>open</button>
<button onclick="w.resizeBy(30,30)">resize</button>
<button onclick="w.moveBy(30,30)">move</button>